Class OrchestrationError
java.lang.Object
com.vasco.orchestration.client.errors.OrchestrationError
The
OrchestrationError class is the base class used for asynchronous error management in
the Orchestration SDK.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintreturn error code attached to the errorreturn the exception attached to the errorintif the cause is not null and a InternalException we return the initial error code 0 otherwise.voidsetErrorCode(int errorCode) set the error codevoidsetException(Throwable exception) set the exception
-
Constructor Details
-
OrchestrationError
Constructor- Parameters:
errorCode- error code attached to the errorexception- exception returned during a flow execution
-
-
Method Details
-
getErrorCode
public int getErrorCode()return error code attached to the error- Returns:
- error code
-
setErrorCode
public void setErrorCode(int errorCode) set the error code- Parameters:
errorCode- error code
-
getException
return the exception attached to the error- Returns:
- exception
-
setException
set the exception- Parameters:
exception- exception
-
getInitialErrorCode
public int getInitialErrorCode()if the cause is not null and a InternalException we return the initial error code 0 otherwise.- Returns:
- the initial error code
-